package com.dj.merchant.mapper;

import com.dj.merchant.model.MerchantModelRelation;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MerchantModelRelationMapper {
    int insertSelective (MerchantModelRelation merchantModelRelation);

    List<Integer> getBusinessModelTypeById(Long merchantId);

    int updateByPrimaryKeySelective(MerchantModelRelation merchantModelRelation);

    int updateBusinessModelType(@Param("merchantId") Long merchantId, @Param("businessModelTypeUpdate")int businessModelTypeUpdate, @Param("businessModelTypeOrigin") int businessModelTypeOrigin);

    void deleteBusinessModelType(Long merchantId);
}
